<div class="panel-group category-products" id="accordian"><!--category-productsr-->
{categories_dish out="array"}
{if $array|@count gt 0}
	{foreach from=$array key=k item=v}
		{if $v.sub_categories|@count gt 0}
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4 class="panel-title">
					<a data-toggle="collapse" data-parent="#accordian" href="#{$v.alias}">
						<span class="badge pull-right"><i class="fa fa-plus"></i></span>
						<h3>{$v.name}</h3>
					</a>
				</h4>
			</div>
			<div id="{$v.alias}" class="panel-collapse collapse">
				<div class="panel-body">
					<ul>
						{foreach from=$v.sub_categories item=sub}
							<li><a href="{$sub.link}"><h3>{$sub.name} </h3></a></li>
						{/foreach}
					</ul>
				</div>
			</div>
		</div>
		{else}
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4 class="panel-title">
					<a href="{$v.link}"><h3>{$v.name} </h3></a>
				</h4>
			</div>
		</div>
		{/if}
	{/foreach}
{/if}
</div><!--/category-products-->